package response;

import enums.ResponseErrorCode;
import enums.ResponseType;

// for global exception handle
public class ErrorResponse extends Response {

    private ResponseErrorCode responseErrorCode;

    public ErrorResponse(ResponseErrorCode responseErrorCode) {
        super(ResponseType.Error);
        this.responseErrorCode = responseErrorCode;
    }

    public ResponseErrorCode getResponseErrorCode() {
        return responseErrorCode;
    }
}
